/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2021-12-26 11:03:49
 */
export type messageType = "success" | "error" | "info" | "warning";
export type messageFun = (message: string, duration?: number) => void;
export enum typeColor {
  success = "#67C23A",
  error = "#F56C6C",
  info = "#909399",
  warning = "#E6A23C",
}
export enum typeIcon {
  success = "success-icon",
  error = "error-icon",
  info = "info-icon",
  warning = "warn-icon",
}
export interface IMessageItem {
  id: number
  type: messageType
  message: string
  duration: number
}
export interface IMessage {
  success: messageFun;
  error: messageFun;
  info: messageFun;
  warning: messageFun;
}
